import { createApp } from 'vue'
import '@/assets/style/mixin.scss';
import App from './App.vue'
import router from "@/router";
import store from "@/store"
import Icon from "@/components/icons/index.vue";
//导入elementPLus的css
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
//接入debug模式
// import * as fundebug from "fundebug-javascript";
// import FundebugVue from "fundebug-vue";
// fundebug.init({
//     apikey:"b419c3c8bd42a1780fadf21eff769768d289ee5e9124071a950e52f4ae8bce14"
// })


import directive from './directive';
const app = createApp(App);

//全局注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router).use(ElementPlus)

app.component('font-icon', Icon);
// app.use(new FundebugVue(fundebug))
app.use(store).use(directive).mount('#app')
